﻿namespace SLClient.ServiceAPI
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.Serialization;
    using System.Threading;

    [DataContract(Name="UserScaleInfo", Namespace="http://schemas.datacontract.org/2004/07/SLClient"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "4.0.0.0")]
    public class UserScaleInfo : INotifyPropertyChanged
    {
        private decimal FianDianField;
        private int IdField;
        private decimal JiangJinField;
        private int PlayTypeIdField;
        private int PlayTypeInfoIdField;
        private PropertyChangedEventHandler _PropertyChanged;
        private Guid UserIdField;

        public event PropertyChangedEventHandler PropertyChanged
        {
            add
            {
                PropertyChangedEventHandler handler2;
                PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
                do
                {
                    handler2 = propertyChanged;
                    PropertyChangedEventHandler handler3 = (PropertyChangedEventHandler) Delegate.Combine(handler2, value);
                    propertyChanged = Interlocked.CompareExchange<PropertyChangedEventHandler>(ref this._PropertyChanged, handler3, handler2);
                }
                while (propertyChanged != handler2);
            }
            remove
            {
                PropertyChangedEventHandler handler2;
                PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
                do
                {
                    handler2 = propertyChanged;
                    PropertyChangedEventHandler handler3 = (PropertyChangedEventHandler) Delegate.Remove(handler2, value);
                    propertyChanged = Interlocked.CompareExchange<PropertyChangedEventHandler>(ref this._PropertyChanged, handler3, handler2);
                }
                while (propertyChanged != handler2);
            }
        }

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this._PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember(Order=4)]
        public decimal FianDian
        {
            get
            {
                return this.FianDianField;
            }
            set
            {
                if (!this.FianDianField.Equals(value))
                {
                    this.FianDianField = value;
                    this.RaisePropertyChanged("FianDian");
                }
            }
        }

        [DataMember]
        public int Id
        {
            get
            {
                return this.IdField;
            }
            set
            {
                if (!this.IdField.Equals(value))
                {
                    this.IdField = value;
                    this.RaisePropertyChanged("Id");
                }
            }
        }

        [DataMember(Order=3)]
        public decimal JiangJin
        {
            get
            {
                return this.JiangJinField;
            }
            set
            {
                if (!this.JiangJinField.Equals(value))
                {
                    this.JiangJinField = value;
                    this.RaisePropertyChanged("JiangJin");
                }
            }
        }

        [DataMember(Order=5)]
        public int PlayTypeId
        {
            get
            {
                return this.PlayTypeIdField;
            }
            set
            {
                if (!this.PlayTypeIdField.Equals(value))
                {
                    this.PlayTypeIdField = value;
                    this.RaisePropertyChanged("PlayTypeId");
                }
            }
        }

        [DataMember(Order=2)]
        public int PlayTypeInfoId
        {
            get
            {
                return this.PlayTypeInfoIdField;
            }
            set
            {
                if (!this.PlayTypeInfoIdField.Equals(value))
                {
                    this.PlayTypeInfoIdField = value;
                    this.RaisePropertyChanged("PlayTypeInfoId");
                }
            }
        }

        [DataMember]
        public Guid UserId
        {
            get
            {
                return this.UserIdField;
            }
            set
            {
                if (!this.UserIdField.Equals(value))
                {
                    this.UserIdField = value;
                    this.RaisePropertyChanged("UserId");
                }
            }
        }
    }
}

